using UnityEngine;
using System.Collections;

[System.Serializable]
public class LoopAnimation : MonoBehaviour {
	
	public bool loop = true;
	
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		if (!this.animation.isPlaying && loop) {
			this.animation.Play();
		}
	}
}
